﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Gao.Poker.App.ViewModel;

namespace Gao.Poker.App.View.Storage
{
    /// <summary>
    /// Interaction logic for StorageMain.xaml
    /// </summary>
    public partial class StorageMain : UserControl
    {
        private StorageViewModel _ViewModel;
        private static StorageMain _instance;

        public StorageMain()
        {
            InitializeComponent();
            _ViewModel = new StorageViewModel(cc);
            DataContext = _ViewModel;
        }

        public static StorageMain Instance()
        {
            return _instance ?? (_instance = new StorageMain());
        }
    }
}
